package syyo.com;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

import syyo.com.service.WangService;

/**
 * @author: wang
 * @date: 2021/1/4 15:45
 * @Description:
 */
public class Demo {

	public static void main(String[] args){
		AnnotationConfigApplicationContext ac = new AnnotationConfigApplicationContext(WangService.class);

		WangService user = (WangService)ac.getBean("wangService");

		System.out.println("========前======");
		System.out.println(user.toString());
		System.out.println("========后======");
	}
}
